<?php
/*********************/
/*                   */
/* http://www.ymd.cc */
/*********************/
/*    QQ: 11121426   */
/*                   */

/*********************/

class modelFactory
{

    public $system = NULL;
    public $db = NULL;

    public function modelFactory()
    {
        $system =& $GLOBALS['system'];
        $this->system =& $system;
        $this->db =& $this->system->database();
    }

    public function setError($errorno = 0, $jumpto = "back", $msg, $links = array(), $time = 3, $js = null)
    {
        $this->system->ErrorSet = array(
            "errorno" => $errorno,
            "message" => $msg,
            "jumpto" => $jumpto,
            "links" => $links,
            "time" => $time,
            "js" => $js
        );
    }

}

?>
